﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Site_Admin.master" AutoEventWireup="true" CodeFile="Dangkylop.aspx.cs" Inherits="Admin_Dangkylop" %>

<%@ Register src="../Controls/admin/ucLeftmenu_l.ascx" tagname="ucLeftmenu_l" tagprefix="uc1" %>
<%@ Register src="../Controls/admin/ucMenu_l.ascx" tagname="ucMenu_l" tagprefix="uc2" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Menu" Runat="Server">

    <uc2:ucMenu_l ID="ucMenu_l1" runat="server" />

</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CP_left_menu" Runat="Server">
    <uc1:ucLeftmenu_l ID="ucLeftmenu_l1" runat="server" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ad_main" Runat="Server">
    <div class="breadcrumb">
        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="Trangchu.aspx">Trang chủ</asp:HyperLink>
        <span class="active_breadcrumb">
            <asp:Label ID="lblienKet" runat="server" Text="Đăng Ký Lớp"></asp:Label>
        </span>
    </div>
            
    <div class="nav_tabs">
        <ul>
            <li class="active_tabs">
                <asp:HyperLink ID="linkduyetdk" NavigateUrl="~/Admin/Dangkylop.aspx" runat="server">Duyệt Đăng Ký</asp:HyperLink>
            </li>
            <li>
                <asp:HyperLink ID="linkdk" NavigateUrl="~/Admin/Xemdangkylop.aspx?update=0" runat="server">Đăng Ký Lớp</asp:HyperLink>
            </li>
            <li>
                <asp:HyperLink ID="linkloc" NavigateUrl="~/Admin/Locdangkylop.aspx" runat="server">Lọc</asp:HyperLink>
            </li>
        </ul>
        <%--<div class="tab_description">Ở đây bạn có thể quản lý các Lớp Học trong hệ thống. Với các hành động xem, sửa.</div>--%>
    </div>
    <div class="border_wrapper">
    <div class="title">Danh Sách Đăng Ký</div>
    <asp:GridView ID="gvdklop" runat="server" AllowPaging="True" 
            AutoGenerateColumns="False" CssClass="general" Width="100%" 
            onpageindexchanging="gvdklop_PageIndexChanging" 
            onrowdatabound="gvdklop_RowDataBound">
            <Columns>
                <asp:TemplateField>
                    <HeaderTemplate>
                        <asp:Button ID="btnxoadk" runat="server" Text="Xóa" onclick="btnxoadk_Click" />
                    </HeaderTemplate>
                    <ItemTemplate>
                        <asp:CheckBox ID="chkdk" runat="server" />
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>
                <asp:BoundField DataField="id" HeaderText="ID">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <asp:BoundField DataField="childrenid" HeaderText="Mã Học Sinh">
                <HeaderStyle HorizontalAlign="Center" />
                <ItemStyle HorizontalAlign="Center" />
                </asp:BoundField>
                <%--<asp:TemplateField HeaderText="Mã Lớp">
                    <ItemTemplate>
                        <asp:HyperLink ID="linktkl" runat="server" 
                            NavigateUrl='<%# "Xemdangkylop.aspx?cid="+Eval("id")+"&update=-1" %>' 
                            Text='<%# Eval("classid") %>'></asp:HyperLink>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Left" />
                    <ItemStyle HorizontalAlign="Left" />
                </asp:TemplateField>--%>
                <asp:BoundField DataField="classid" HeaderText="Mã Lớp">
                <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>
                <%--<asp:BoundField DataField="amout" HeaderText="Giới Hạn">
                <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>--%>
                <%--<asp:BoundField DataField="classtype" HeaderText="Loại Lớp">
                <HeaderStyle HorizontalAlign="Left" />
                </asp:BoundField>--%>
                <%--<asp:TemplateField HeaderText="Trạng Thái">
                    <ItemTemplate>
                        <asp:Label ID="Label1" runat="server" 
                            Text='<%# CheckTrangThai(Eval("status")) %>'></asp:Label>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>--%>
                <%--<asp:TemplateField HeaderText="Hành Động">
                    <ItemTemplate>
                        <asp:HyperLink ID="linksual" runat="server" ImageUrl="~/images/admin/edit.png" 
                            NavigateUrl='<%# "Xemlop.aspx?cid="+Eval("id")+"&update=1" %>'></asp:HyperLink>
                    </ItemTemplate>
                    <HeaderStyle HorizontalAlign="Center" />
                    <ItemStyle HorizontalAlign="Center" />
                </asp:TemplateField>--%>
            </Columns>
        </asp:GridView>
    </div>
</asp:Content>
